MPI_COMPILE_FLAGS = $(shell mpicc --showme:compile)
MPI_LINK_FLAGS = $(shell mpicc --showme:link) -fopenmp

CC=gcc

all: words phrases

words:
	$(CC) $(MPI_COMPILE_FLAGS) seive.c parser.c word.c $(MPI_LINK_FLAGS) -o words


phrases:
	$(CC) $(MPI_COMPILE_FLAGS) seive.c parser.c phrase.c $(MPI_LINK_FLAGS) -o phrases

clean:
	/bin/rm -f words phrases
